package com.epam.kulibaba.helpers.testSupport;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.Assert;

import com.epam.kulibaba.components.specialPrice.SpecialPrice;

public class SpecialOffersListHelper {
	
	public static void checkDescriptionLinkInResultTable(String productHref, SpecialPrice resultTable){
		List<WebElement> descriptionLinks = resultTable.getResultTable().findElements(By.xpath(".//a[@class= 'description-link']"));
		for(WebElement link : descriptionLinks){
			System.out.println(link.getAttribute("href")+"ghgjg");
			Assert.assertEquals(link.getAttribute("href").compareTo(productHref) == 0, true);
		}
	}
	
}
